package com.yvon.maple.service.system.dto;


import com.yvon.maple.pojo.BaseDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author : yvon
 * @time : 2020-8-1
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RoleDTO extends BaseDTO implements Serializable {
    /**
     * 角色标识
     */
    @ApiModelProperty(name = "code", value = "角色标识")
    private String code;

    /**
     * 名称
     */
    @ApiModelProperty(name = "name", value = "名称")
    private String name;

    /**
     * 描述
     */
    @ApiModelProperty(name = "description", value = "描述")
    private String description;

    /**
     * 启用状态：0->禁用；1->启用
     */
    @ApiModelProperty(name = "status", value = "启用状态")
    private Integer status;


    @ApiModelProperty(name = "permissions", value = "权限列表")
    private List<RolePermissionDTO> permissions;

}
